﻿@model List<Question>
@{
    ViewBag.Title = "MasoQna - NullPointr 제작 기술을 나누다!";
}
<article>
<div id="options">
</div>
<div id="writingsWrap">
@foreach (Question q in Model)
{
<div class="question">
    <div class="vote">
        @(q.UpVoteCount - q.DownVoteCount)<div class="indexText">표</div>
    </div>
    <div class="answer">@q.Answers.Count<div class="indexText">답변</div></div>
    <div class="view">@q.ViewCount<div class="indexText">읽음</div></div>
    <div class="writingInfo">
        <div class="titleWrap">
            @Html.ActionLink(q.Title, "Read", "Questions", new { id = q.Id }, new { @class = "title" })
        </div>
        <div class="writerWrap">
            @q.Writer.Name
            @{/*
            @Html.ActionLink(Model.UserName, "Index", "User", new { id = Model.UserId }, new { @class = "writer" })
            */} 
            <span class="reputation">@q.Writer.Reputation</span>
            <span class="time">@q.Time</span>
        </div>
    </div>
    <div class=clr></div>
</div>
}
</div>
</article>
<aside>
@if (Request.IsAuthenticated == false)
{
    <div id="about">
        <p>MasoQna는 NullPointr.com을 만드는데 사용된 기술을 공유하기 위해서 만들어진 예제 소프트웨어입니다.</p>
    </div>
}
else
{ 
    <div id="myTags">
    </div>
}
<div id="recentAchievements">
</div>
</aside>